package com.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.entity.Prescription;
import com.mapper.PrescriptionMapper;
import com.service.PrescriptionService;

@Service
public class PrescriptionServiceImpl extends ServiceImpl<PrescriptionMapper, Prescription> implements PrescriptionService {
    @Autowired
    PrescriptionMapper prescriptionMapper;

    @Override
    public void addPrescription(int visitId, String diagnosisName) {
        prescriptionMapper.insert(visitId,diagnosisName);
    }
}
